<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<html>
  <head>
      <title>Login to OSS Event Manager</title>
      <style type="text/css">
          .errorHeader {
              width: 400px; color: red; border: 1px solid black; text-align: center; font-weight: bold; margin: 5px
          }
      </style>
  </head>
  <body>

  <c:if test="${not empty error}">
      <div class="errorHeader">${error}</div>
  </c:if>

  <form:form modelAttribute="loginUser">
      Email: <form:input path="email" autocomplete="false" /><br/>
      Password: <form:password path="password" /><br/>
      <input type="submit" value="Enter">
  </form:form>

  <p>Don't have an account?  Create one <a href="/osseventmanager/controller/eventuser/new">here</a>.</p>
  </body>
</html>